package org.doc.core;

import org.doc.core.api.springmvc.SpringMVCApiDocConfig;

public class Main {

	public static void main(String[] args) {
		System.out.println("开始生成文档");
    	SpringMVCApiDocConfig doc = new SpringMVCApiDocConfig();
    	if(args.length<1){
    		doc.setConfigFilePath("restful-doc.properties");
    	}else{
    		doc.setConfigFilePath(args[0]);
    	}
        
        try {
			doc.start();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
